package com.ruoyi.lxy.zust.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.lxy.zust.domain.TDepartment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface DepartmentMapper extends BaseMapper<TDepartment> {
    @Select("select DWMC from department where department.DM=#{DWDM}")
    String getDepartment(String DWDM);
    List<TDepartment> allDepartment();

}
